﻿<%@ Page Language="C#" MasterPageFile="~/Adminpages/Site2.Master" AutoEventWireup="true" CodeBehind="AGallery.aspx.cs" Inherits="websoni.Adminpages.WebForm1" Title="Untitled Page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
    .style1
    {
        width: 100%;
    }
        .style2
        {
        }
        .style4
        {
            width: 283px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <p>
    <br />
</p>
<table class="style1">
    <tr>
        <td class="style2" colspan="2">
            <asp:Label ID="Label4" runat="server" Text="Label" 
                style="font-size: medium; font-weight: 700; font-style: italic; text-decoration: underline"></asp:Label>
        </td>
    </tr>
    <tr>
        <td class="style2" >
            <asp:Label ID="Label1" runat="server" Text="Album Name"></asp:Label>
        </td>
        <td class="style4">
            <asp:DropDownList ID="ddlalbum" runat="server" Height="20px" Width="127px">
            </asp:DropDownList>
            <asp:TextBox ID="tbgid" runat="server" Visible="False"></asp:TextBox>
            <asp:TextBox ID="tbalid" runat="server" Visible="False"></asp:TextBox>
        </td>
    </tr>
    <tr>
        <td class="style2" valign="top">
            <asp:Label ID="Label2" runat="server" Text="Upload Image"></asp:Label>
        </td>
        <td class="style4">
            <asp:FileUpload ID="uplodimage" runat="server" />
            <asp:TextBox ID="tbimage" runat="server" Visible="False"></asp:TextBox>
        </td>
    </tr>
    <tr>
        <td class="style2" valign="top">
            <asp:Label ID="Label3" runat="server" Text="Description"></asp:Label>
        </td>
        <td class="style4">
            <asp:TextBox ID="tbdescription" runat="server" TextMode="MultiLine" 
                Width="283px" Height="94px">Write something about this image...</asp:TextBox>
        </td>
    </tr>
    <tr>
        <td class="style2">
            &nbsp;</td>
        <td class="style4">
            <asp:Button ID="btnok" runat="server" Text="OK" onclick="btnok_Click" />
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            <asp:Button ID="btnupdate" runat="server" Text="Update" 
                onclick="btnupdate_Click" />
        </td>
    </tr>
    <tr>
        <td class="style2">
            &nbsp;</td>
        <td class="style4">
            &nbsp;</td>
    </tr>
    <tr>
        <td class="style2">
            <asp:Label ID="Label6" runat="server" Text="Album Name"></asp:Label>
        </td>
        <td class="style4">
            <asp:DropDownList ID="ddalbum2" runat="server" Height="20px" Width="165px">
            </asp:DropDownList>
&nbsp;<asp:Button ID="btnview" runat="server" onclick="btnview_Click" 
                Text="Click to View" />
        </td>
    </tr>
    <tr>
        <td colspan="2">
            <asp:DataList ID="DataList1" runat="server" RepeatDirection="Horizontal" RepeatColumns="5" 
                HorizontalAlign="Justify" GridLines="Both" style="text-align: center">
                <ItemTemplate>
                    <asp:Image ID="Image2" runat="server" Height="102px" 
                        ImageUrl='<%# "~/images/"+Eval("images") %>' Width="147px" />
                    <br />
                    <asp:Label ID="Label5" runat="server" Text='<%# Eval("image_Description") %>'></asp:Label>
                    <br />
                    <asp:Button ID="btnedit" runat="server" CausesValidation="False" 
                        CommandArgument='<%# Eval("gid") %>' CommandName="Edit" 
                        oncommand="btnedit_Command" Text="Edit" />
                    <asp:Button ID="btndelete" runat="server" CausesValidation="False" 
                        CommandArgument='<%# Eval("gid") %>' CommandName="Delete" 
                        oncommand="btndelete_Command" Text="Delete" />
                    <br />
                </ItemTemplate>
            </asp:DataList>
            <br />
            <br />
        </td>
    </tr>
</table>
</asp:Content>
